1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

Reference | curveto()


Syntax
curveto(h1x, h1y, h2x, h2y, x, y)

DescriptionThe curveto() command must be called between beginpath() and endpath(). Draws a curve between the current point in the path and a new destination point. The last two parameters, x and y, set the location of the new destination point. The first and second, and the third and fourth parameters set the location of the two control points of the curve. These control points, or handles, define the edge and slant of the curve.
Tutorial Paths


Example
nofill()
stroke(0.2)
beginpath(0, 0)
curveto(100, 100, 50, 0, 100, 100)
endpath()